package com.bingxue.edu.framework.exception;


import com.bingxue.edu.framework.common.constant.HttpStatus;

/**
 * 业务异常
 *
 * @author panbo
 * @since 2024/6/26
 */
public class BusinessException extends ErrorCodeException {

    @Override
    public int getStatusCode() {
        return HttpStatus.BAD_REQUEST.getCode();
    }

    public BusinessException(String message) {
        super(CommonErrorCode.REQUEST_FAILED, message);
    }

    public BusinessException(ErrorCode errorCode, Object... params) {
        super(errorCode, params);
    }

}
